package com.szholly.plug.safe.entity.user;

import com.szholly.data.general.*;

/**
 * 定义用户角色实体
 */
public class UserRoleEntity extends RowBase {

	private static final long serialVersionUID = -4505057087603187400L;

	/**
	 * 用户主键
	 */
	public final static String FIELD_USERID = "S_USERID";

	/**
	 * 角色主键
	 */
	public final static String FIELD_ROLEID = "S_ROLEID";

	/**
	 * 获取用户ID
	 * 
	 * @return
	 */
	public String getUserID() {
		return (String)getValue(GlobalDataType.String, FIELD_USERID);
	}

	/**
	 * 设置用户ID
	 * 
	 * @param value
	 */
	public void setUserID(String value) {
		setValue(FIELD_USERID, value);
	}

	/**
	 * 获取角色ID
	 * 
	 * @return
	 */
	public String getRoleID() {
		return (String)getValue(GlobalDataType.String, FIELD_ROLEID);
	}

	/**
	 * 设置角色ID
	 * 
	 * @param value
	 */
	public void setRoleID(String value) {
		setValue(FIELD_ROLEID, value);
	}
}